<?php
/*
 * Author: NghiaTT
 * Date: 07-09-2011
 * Email:nghiatruong@vietnambiz.com
 */
class Html_model extends MY_Model{

	function __construct()
	{
		parent::__construct();		
	}
		
	function get_articles_by_link($link = '')
	{
		$where = array(
			'title_link' 	=> $link,
			'status'		=> 'yes'
		);
		$q = $this->db->from("html")
					 ->where($where)
					 ->get();		
        $result = $q->row();
        $q->free_result();        
        return $result;
	}
}